package com.bjtang.book.enums;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

//自定义注解
public class HttpMethodConstraintValidator implements ConstraintValidator<HttpMethod, String> {
	@Override
	public boolean isValid(String value, ConstraintValidatorContext context) {
		return HTTPMethod.isValidName(value);
	}
}